package com.pathfinder.model;

import android.graphics.Color;

/**
 * Date: 08.05.11
 *
 * @author Victor Passichenko (vpas@yandex-team.ru)
 */
public class PlayerInfo {
    

    private String name;
    private PlayerRole role = PlayerRole.NONE;
    private String colorName;

    public PlayerInfo(String name) {
        this.name = name;
    }

    public int getColorCode() {
        return Color.parseColor(colorName);
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorByName(String colorName) {
        this.colorName = colorName;
    }

    public String getName() {
        return name;
    }

    public PlayerRole getRole() {
        return role;
    }

    public void setRole(PlayerRole role) {
        this.role = role;
    }
}
